Part Number Hot Search : 
MPSA43 SML50T47 10150 005000 CSB500 61056 CD4744A NDB610AE
Product Description
Full Text Search
 

To Download VCM-DAS-3 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  reference manual doc. rev. 01/24/2008 VCM-DAS-3 analog output & digital i/o module for the pc/104 bus
VCM-DAS-3 reference manual ii www.versalogic.com 3888 stewart road eugene, or 97402 (541) 485-8575 fax (541) 485-5712 contents copyright ?2008 all rights reserved notice: although every effort has been made to ensure this document is error-free, versalogic makes no representations or warranties with respect to this pr oduct and specifically disclaims any implied warranties of merchantability or fitness for any particular purpose. versalogic reserves the right to revise this produc t and associated documentati on at any time without obligation to notify anyone of such changes. pc/104 and the pc/104 logo are tradem arks of the pc/104 consortium. mvcmdas3
VCM-DAS-3 reference manual iii product release notes rev 2 release production release. rev 1 release alpha. no customer release. support page the VCM-DAS-3 support page, at http://www.versa logic.com/private/vcmdas3support.asp , contains additional information and resources for this product including: ? reference manual (pdf format) ? operating system information and software drivers ? data sheets and manufacturers? links for chips used in this product ? bios information and upgrades ? utility routines and benchmark software note: this is a private page for VCM-DAS-3 users t hat can be accessed only be entering this address directly. it cannot be reached from the versalogic homepage.
VCM-DAS-3 reference manual iv contents introduction ..................................................................................................................... 1 description.......................................................................................................................... 1 technical specifications ..................................................................................................... 2 rohs compliance .............................................................................................................. 3 about rohs........................................................................................................... 3 warnings............................................................................................................................. 3 electrostatic discharge .......................................................................................... 3 technical support .............................................................................................................. .4 repair service........................................................................................................ 4 physical description ....................................................................................................... 5 dimensions ......................................................................................................................... 5 side profile ............................................................................................................ 6 external connectors............................................................................................................ 6 connector locations .............................................................................................. 6 connector functions and interface cables ............................................................ 7 j1 i/o connector.................................................................................................... 8 j2 i/o connector.................................................................................................... 9 j3 i/o connector.................................................................................................. 10 installation ................................................................................................................... ..... 11 hardware assembly............................................................................................. 11 stack arrangement example ............................................................................... 11 configuration................................................................................................................. 1 2 jumper blocks.................................................................................................................. .12 jumpers as-shipped configuration..................................................................... 12 jumper summary ................................................................................................. 13 base address configuration ............................................................................................. 14 bit mode configuration.................................................................................................... 15 enhanced mode configuration ......................................................................................... 15 power-up span range configuration ............................................................................... 15 registers...................................................................................................................... .. 16 i/o port mapping .............................................................................................................. 1 6 i/o port register functions ................................................................................. 17 enhanced mode registers................................................................................................. 18 enhanced control register .................................................................................. 18 enhanced mode data registers ........................................................................... 19 digital i/o control register.............................................................................................. 20 digital i/o data registers................................................................................................. 21 digital input registers ......................................................................................... 21 digital output registers ...................................................................................... 22 external trigger enable register...................................................................................... 23 analog output data registers .......................................................................................... 24
contents VCM-DAS-3 reference manual v dac channel sel ect register.............................................................................. 24 dac write registers ........................................................................................... 25 dac read registers ............................................................................................ 25 analog output ............................................................................................................... 26 analog output ranges and resolution............................................................................. 26 setting a span range ........................................................................................... 26 analog output data representation ................................................................................. 27 straight binary coding ........................................................................................ 27 offset binary coding........................................................................................... 28 analog output programming............................................................................................ 30 external trigger update ...................................................................................... 30 load dac operation........................................................................................... 30 analog output code example .......................................................................................... 31 calibration .................................................................................................................... .... 33 setting the gain ................................................................................................... 33 reading the gain ................................................................................................. 33 enhanced mode operations.............................................................................................. 34 reading dac data .............................................................................................. 34 reading the span of a channel............................................................................ 34 setting a channel to sleep mode......................................................................... 35 reading the sleep status of a channel ................................................................ 35 digital i/o .................................................................................................................... ... 36 signal direction ............................................................................................................... .36 signal polarity ................................................................................................................ .. 36 digital input.................................................................................................................. .... 36 digital output ................................................................................................................. .. 36 references..................................................................................................................... 37
VCM-DAS-3 reference manual 1 introduction description the VCM-DAS-3 is a pc/104-format data acquisition board that provides analog outputs and digital i/o for process control and other applications. its features include: ? 16 analog voltage outputs with 12-bit resolution ? multiple output ranges ? software adjustable output ranges per channel ? simultaneous or individual dac update ? power-up ranges set by jumpers in groups of eight, reset per channel by software ? software calibration ? 16-bit or 8-bit isa modes ? read-back of dac and span codes ? reset/power up to 0v outputs for all ranges ? external trigger ? +5v operation ? 24-channel digital i/o the VCM-DAS-3 module provides 16 single-ended analog outputs and 24 digital i/o channels. fully compatible at the register and connector level with the diamond systems ruby-mm dac board, VCM-DAS-3 also provides enhanced mode operation that extends its capabilities. in enhanced mode: ? analog output ranges can be set for individual channels through software. ? analog output and ranges can be read from individual channels. ? specific analog channels can be placed into sleep mode to conserve power. ? individual channels can be updated and read. ? calibration can be performed with software. 1 1
technical specifications VCM-DAS-3 reference manual 2 technical specifications specifications are typical at 25c with 5.0v supply unless otherwise noted. board size: 3.55? x 3.775? (pc/104 standard) storage temperature: - 40 c to +85 c operating temperature: - 40 c to +85 c power requirements: 5v analog output: channels: 16 outputs resolution: 12 bits output ranges: bipolar: 10v, 5v, 2.5v, - 2.5v to 7.5v unipolar: 0 - 10v, 0 - 5v output current: 5 ma max per channel settling time: 8 us typ. (10v range, 20v step to 1lsb) accuracy: 1 lsb integral nonlinearity: 1 lsb differential nonlinearity: 1 lsb calibration: one gain and one zero adjustment for all channels gain temp. coefficient: 2 ppm/ c update method: simultaneous, indi vidual, or external trigger reset: outputs reset to 0v when board is jumpered for enhanced mode, mid-scale otherwise digital i/o: channels: 24 compatibility: cmos / ttl, 82c55 mode 0 only low input voltage: - 0.3v min., 0.8v max high input voltage: 2.0v min., 5.5v max. low output voltage: 0.4v max. high output voltage: 3.0v max. output current: +4 ma / - 8 ma max. pull-up resistor: 10 k ohm reset: all channels set to input mode software: operating systems: compatible with most x86 operating systems including windows 95/85/nt/ce/xp, qnx, vxworks, and linux driver support: no native drivers. fully co mpatible with diamond systems drivers. compatibility: pc/104 ? full compliance, 8-bit and 16-bit weight: 0.152 lbs (0.069 kg) specifications are subject to change without notice.
rohs compliance VCM-DAS-3 reference manual 3 rohs compliance the VCM-DAS-3 is rohs-compliant. a bout r o hs in 2003, the european union issued directive 2002/ 95/ec regarding the restriction of the use of certain hazardous substances (rohs) in electrical and electronic equipment. the rohs directive requires producers of elect rical and electronic equipment to reduce to acceptable levels the presence of six environmentally sensitive substances: lead, mercury, cadmium, hexavalent chromium, and the presen ce of polybrominated biphenyls (pbb) and polybrominated diphenyl ethers (pbde) flame re tardants, in certain electrical and electronic products sold in the european union (eu) beginning july 1, 2006. versalogic corporation is committed to suppor ting customers with high-quality products and services meeting the european union?s rohs directive. warnings e lectrostatic d ischarge warning! electrostatic discharge (esd) can damage circuit boards, disk drives and other components. the circuit board must only be handled at an esd workstation. if an approved station is not available, some measure of protection can be provided by wearing a grounded antistatic wrist strap. k eep all plastic away from the board, and do not slide the board over any surface. after removing the board from its protective wrapper, place the board on a grounded, static-free surface, component side up. use an antistatic foam pad if available. the board should also be protected inside a closed metallic anti-static envelope during shipment or storage.
technical support VCM-DAS-3 reference manual 4 technical support if you are unable to solve a problem after reading this manual please visit the VCM-DAS-3 product support web page at http://www.versalogic.com/private/vcmdas3support.asp . if you have further questions, contact versalogic technical support at (541) 485-8575. versalogic technical support engineers are also available via e-mail at support@versalogic.com . r epair s ervice if your product requires service, you must obtain a returned material authorization (rma) number by calling (541) 485-8575. please provide the following inform ation: ? your name, the name of your company and your phone number ? the name of a technician or engineer that can be contacted if any questions arise. ? quantity of items being returned ? the model and serial number (barcode) of each item ? a detailed description of the problem ? steps you have taken to resolve or recreate the problem ? the return shipping address warranty repair all parts and labor charges are covered, including return shipping charges for ups ground delivery to united states addresses. non-warranty repair all non-warranty repairs are subject to diagnosis and labor charges, parts charges and return shipping fees. please specify the shipping method you prefer and provide a purchase order number for invoicing the repair. note: please mark the rma number clearly on the outside of the box before returning. VCM-DAS-3 support website http://www.versalogic.com/private/vcmdas3support.asp
VCM-DAS-3 reference manual 5 physical description dimensions the VCM-DAS-3 complies with all pc/104 standards. dimensions are given below to help with pre-production planning and layout. figure 1. dimensions and mounting holes (not to scale. all dimensions in inches.) 2 2 3.375 0.00 0.15 3.05 ?0.1875 0.00 3.15 3.3625 3.575 -0.20 = pin 1
external connectors VCM-DAS-3 reference manual 6 s ide p rofile figure 2. side profile (not to scale. all dimensions in inches.) external connectors c onnector l ocations figure 3. connector locations (top) (not to scale.) j2 j1 j3 j4 = pin 1 j5 b1 a1 c0 d0 c19 d19 49 50 1 2 b32 a32 1 1 2 2 9 39 10 40 v1 v2 v3 0 .44 0 .44 0.06
external connectors VCM-DAS-3 reference manual 7 figure 4. connector locations (bottom) (not to scale.) c onnector f unctions and i nterface c ables table 1 provides information about the function, mating connectors, and transition cables for VCM-DAS-3 connectors. page numbers indicat e where a detailed pinout is available. table 1: connector functions and interface cables connector function mating connector tran sition cable cable description page j1 digital i/o (a0- a7) fci 89361-710lf ? 2mm 10-pin idc 8 j2 analog outputs, digital i/o (b0- c7) fci 89361-740lf cbr-4004a 12? 2mm 40-pin to 40-pin idc to screw terminal board cbr- 4004b 9 j3 analog outputs, digital i/o standard 0.1? 50-pin cable-mount idc diamond systems c-50-18 data acquisition, 50 conductor 0.1" ribbon cable 10 j4 factory use only ? ? ? ? j5 pc/104 amp 1375795-2 ? ? ? = pin 1 pc/104 (isa) pass-through male b1 a1 c0 d0 c19 d19 b19 a19
external connectors VCM-DAS-3 reference manual 8 j1 i/o c onnector the j1 i/o connector incorporates digital i/o si gnals a0 through a7. the pinout of the connector is shown in table 2. table 2 j1 i/o connector pinout j1 pin signal name function 1 ground ground 2 dio a7 digital i/o a7 3 dio a6 digital i/o a6 4 dio a5 digital i/o a5 5 dio a4 digital i/o a4 6 dio a3 digital i/o a3 7 dio a2 digital i/o a2 8 dio a1 digital i/o a1 9 dio a0 digital i/o a0 10 ground ground
external connectors VCM-DAS-3 reference manual 9 j2 i/o c onnector the j2 i/o connector incorporates analog voltage outputs 0 through 15 and digital i/o channels b0 through c7. table 3 illustrates the function of each pin and the pinout assignments to connectors on the cbr-4004 i/o board. table 3: j2 i/o connector pinout j2 pin signal name function cbr-4004 connector cbr-4004 pin (label) 1 vout 00 analog out ch 0 j1 5 (io1) 2 vout 01 analog out ch 1 analog 4 (io2) 3 vout 02 analog out ch 2 output 3 (io3) 4 vout 03 analog out ch 3 2 (io4) 5 ground ground 1 (gnd1) 6 vout 04 analog out ch 4 j2 5 (io5) 7 vout 05 analog out ch 5 analog 4 (io6) 8 vout 06 analog out ch 6 output 3 (io7) 9 vout 07 analog out ch 7 2 (io8) 10 ground ground 1 (gnd1) 11 vout 08 analog out ch 8 j3 5 (io9) 12 vout 09 analog out ch 9 analog 4 (io10) 13 vout 10 analog out ch 10 output 3 (io11) 14 vout 11 analog out ch 11 2 (io12) 15 ground ground 1 (gnd2) 16 vout 12 analog out ch 12 j4 5 (io13) 17 vout 13 analog out ch 13 analog 4 (io14) 18 vout 14 analog out ch 14 output 3 (io15) 19 vout 15 analog out ch 15 2 (io16) 20 ground ground 1 (gnd2) 21 dio b7 digital i/o b7 j6 5 (io17) 22 dio b6 digital i/o b6 digital i/o b 4 (io18) 23 dio b5 digital i/o b5 3 (io19) 24 dio b4 digital i/o b4 2 (io20) 25 ground ground 1 (gnd3/pbrst#) 26 dio b3 digital i/o b3 j7 5 (io21) 27 dio b2 digital i/o b2 digital i/o b 4 (io22) 28 dio b1 digital i/o b1 3 (io23) 29 dio b0 digital i/o b0 2 (io24) 30 ground ground 1 (gnd3) 31 dio c7 digital i/o c7 j8 5 (io25) 32 dio c6 digital i/o c6 digital i/o c 4 (io26) 33 dio c5 digital i/o c5 3 (io27) 34 dio c4 digital i/o c4 2 (i028) 35 ground ground 1 (gnd4) 36 dio c3 digital i/o c3 j9 5 (io29) 37 dio c2 digital i/o c2 digital i/o c 4 (io30) 38 dio c1 digital i/o c1 3 (io31) 39 dio c0 digital i/o c0* 2 (io32) 40 ground ground 1 (gnd4) * pin 39 can also used as an external tri gger for updating dac channels. see external trigger update.
external connectors VCM-DAS-3 reference manual 10 j3 i/o c onnector the j3 i/o connector incorporates analog voltage outputs 0 through 15 and digital i/o channels a0 through c7. the pinout of the connector is shown in table 4. note this connector is compatible with diam ond systems? cable c-50-18. any standard 0.1? 50-pin cable-mount idc connector will mate with this connector. table 4: j3 i/o connector pinout j3 pin signal name function j3 pin signal name function 1 ground ground 26 dio a6 digital i/o a6 2 vout 00 analog output 0 27 dio a5 digital i/o a5 3 ground ground 28 dio a4 digital i/o a4 4 vout 01 analog output 1 29 dio a3 digital i/o a3 5 ground ground 30 dio a2 digital i/o a2 6 vout 02 analog output 2 31 dio a1 digital i/o a1 7 ground ground 32 dio a0 digital i/o a0 8 vout 03 analog output 3 33 dio b7 digital i/o b7 9 ground ground 34 dio b6 digital i/o b6 10 vout 04 analog output 4 35 dio b5 digital i/o b5 11 ground ground 36 dio b4 digital i/ob4 12 vout 05 analog output 5 37 dio b3 digital i/o b3 13 ground ground 38 dio b2 digital i/o b2 14 vout 06 analog output 6 39 dio b1 digital i/o b1 15 ground ground 40 dio b0 digital i/o b0 16 vout 07 analog output 7 41 dio c7 digital i/o c7 17 vout 08 analog output 8 42 dio c6 digital i/o c6 18 vout 09 analog output 9 43 dio c5 digital i/o c5 19 vout 10 analog output 10 44 dio c4 digital i/o c4 20 vout 11 analog output 11 45 dio c3 digital i/o c3 21 vout 12 analog output 12 46 dio c2 digital i/o c2 22 vout 13 analog output 13 47 dio c1 digital i/o c1 23 vout 14 analog output 14 48 dio c0 digital i/o c0* 24 vout 15 analog output 15 49 v5_0 protected +5.0 volts 25 dio a7 digital i/o a7 50 ground ground * pin 48 can also used as an external trigger for updating dac channels. see external trigger update.
installation VCM-DAS-3 reference manual 11 installation h ardware a ssembly the VCM-DAS-3 uses pass-through pc/104 (isa) connectors so that expansion modules can be added to the top or bottom of the stack. pc/104 modules must not be positioned between the cpu board and any pc/104- plus (pci) modules on the stack. the entire assembly can sit on a table top or be secured to a base plate. when bolting the unit down, make sure to secure all four standoffs to the mounting surface to prevent circuit board flexing. standoffs are secured to the top circuit board using four pan head screws. standoffs and screws are available as part number vl-hdw-101. an extractor tool is available (part number vl-hdw-201) to separate the pc/104 modules from the stack. use caution when using the extractor tool not to damage any board components. s tack a rrangement e xample figure 5. stack arrangement
VCM-DAS-3 reference manual 12 configuration jumper blocks j umpers a s -s hipped c onfiguration figure 6. jumper block locations 3 3 v1 v2 v3 1 3 5 7 9 11 13 15 1 3 5 7 1 3 5 7 2 4 6 8 2 4 6 8 2 4 6 8 10 12 14 16
jumper blocks VCM-DAS-3 reference manual 13 j umper s ummary table 5: jumper summary jumper block description as shipped page v1[15-16] bit mode selector in = 16-bit isa transactions out = 8-bit isa transactions 8-bit mode forces the VCM-DAS-3 to re spond with 8-bit trans actions. this mode is required when using the board on an 8- bit bus. the 16-bit mode allows both 8 and 16-bit transactions. in 15 v1[13-14] enhanced/compatible mode selector in = enhanced mode out = compatible mode enhanced mode provides extr a dac functions, which should operate properly in applications designed for the diamond systems ruby-mm board. in 15 v1 [11-12] to [1-2] base address selector ? a base address of 0x000 to 0x3f0 can be selected. the last digit is always 0. first digit [11-12] 9-10] 0 in out 1 out in 2 out in 3 out out second digit [7-8] [5-6] [3-4] [1-2] 0 in in in in 1 in in in out 2 in in out in 3 in in out out 4 in out in in 5 in out in out 6 in out out in 7 in out out out 8 out in in in 9 out in in out a out in out in b out in out out c out out in in d out out in out e out out out in f out out out out out, out, in, in, in, in, (0x300) 15 v2 a/d channel 0-7 span range selector [7-8] [5-6] [3-4] [1-2] 0v to +5v in in in in 0v to +10v in in in out - 5v to +5v in in out in - 10v to +10v in in out out - 2.5v to +2.5v in out in in - 2.5v to +7.5v in out in out these jumpers set the initial power up span ranges for a/d channels 0-7. in, in, in, in (0v to +5v) 26 v3 a/d channel 8-16 span range selector [7-8] [5-6] [3-4] [1-2] 0v to +5v in in in in 0v to +10v in in in out - 5v to +5v in in out in - 10v to +10v in in out out - 2.5v to +2.5v in out in in - 2.5v to +7.5v in out in out these jumpers set the initial power up span ranges for a/d channels 8-16. in, in, in, in (0v to +5v) 26
base address configuration VCM-DAS-3 reference manual 14 base address configuration as shipped, the VCM-DAS-3 is configured for a base address of 0x300. the card occupies up to 16 consecutive i/o addresses in enhanced mode ( only eight i/o addresses in compatible mode). jumper block v1[11-12] through v1[1-2] is used set the base address. the base address can be configured from 0x000 to 0x3f0 on any 10h address boundary. figure 7 shows how to set the address selector jumpers for the appropriate upper and middle hex digits of the three digit base address (for example, the ?3? and ?1? of base address 0x310). figure 7. base address jumpers 9 10 11 12 0 5 2 6 0 2 1 3 c e d f 4 a 9 b 1 7 3 8 12 3 4 5 6 7 8 the lower digit is always 0. upper digit middle digit lower digit 0x340 example: 1 2 3 4 5 6 7 8 9 10 11 12
bit mode configuration VCM-DAS-3 reference manual 15 bit mode configuration the VCM-DAS-3 can operate using 8-bit or16-bit isa transactions. for compatibility with 8-bit isa buses, you must set the VCM-DAS-3 to use 8-bit isa transactions. jumper v1[15-16] selects the bit mode. when a jumper is present, the board will operate on either 16-bit or 8-bit isa bus. when the jumper is removed, the board is forced to perform only 8-bit isa transactions. the default setting is jumper installed. enhanced mode configuration jumper v1[13-14] enables you to select between compatible or enhanced modes. a jumper installed on v1[13-14] sets the VCM-DAS-3 to enhanced mode. when no jumper is installed, the board operates in compatible mode . the default mode is enhanced. in compatible mode, eight registers are decoded for use, including all the registers needed for dac and dio operations and control. these registers are identical to those provided by the diamond systems ruby-mm, and enable full compatibility in applications designed with that board. in this mode, analog output ranges are dete rmined by jumper settings (in two banks of eight registers) and are not software programmable. enhanced mode provides three additional register s for more specific control of dac operations. the enh_con register enables you to set spans for specific dac channels, read dac data and spans, set dac channels to sleep mode for power savings, and set and read the gain for all channels. power-up span range configuration jumper block v2 sets the initial span range for a/ d channels 7-0. jumper block v3 sets the initial span range for a/d channels 15-8. (see table 5 fo r a list of settings.) the span range can be set differently for each 8-channel bank. within each bank, all channels will have the same initial span range; however, in enhanced mode, ranges can be set individually for each channel via software. two unipolar output ranges (0v to 5v and 0v to 10v), and four bipolar ranges (2.5v, 5v, 10v and - 2.5v to 7.5v) are available.
VCM-DAS-3 reference manual 16 registers i/o port mapping in enhanced mode, the VCM-DAS-3 operates occupi es 16 ports in the i/o map. eleven ports are mapped to functional registers, and the remaining five ports are decoded by the board and cannot be used by other pc/104 modules. table 6: enhanced mode i/o port addresses write register read register i/o port address as shipped address ? pldver base address + f 0x30f ? ? base address + e 0x30e ? ? base address + d 0x30d ? ? base address + c 0x30c ? ? base address + b 0x30b enctrl enctrl base address + a 0x30a endathi endathi base address + 9 0x309 endatlo endatlo base address + 8 0x308 dioctrl dioctrl base address + 7 0x307 dioc dioc base address + 6 0x306 diob diob base address + 5 0x305 dioa dioa base address + 4 0x304 extrig extrig base address + 3 0x303 dacsel ? base address + 2 0x302 dachi dacall1 base address + 1 0x301 daclo dacall0 base address + 0 0x300 in compatible mode, the VCM-DAS-3 operates occ upies eight ports in the i/o map, all of which are functional. 4 4
i/o port mapping VCM-DAS-3 reference manual 17 table 7: compatible mode i/o port addresses write register read register i/o port address as shipped address dioctrl dioctrl base address + 7 0x307 dioc dioc base address + 6 0x306 diob diob base address + 5 0x305 dioa dioa base address + 4 0x304 extrig extrig base address + 3 0x303 dacsel ? base address + 2 0x302 dachi dacall1 base address + 1 0x301 daclo dacall0 base address + 0 0x300 i/o p ort r egister f unctions the following table lists the functions assigned to each read and write i/o port register. table 8: register functions write register description page enctrl enhanced control 18 endathi enhanced data msb 19 endatlo enhanced data lsb 19 dioctrl digital i/o control register 20 dioc digital i/o port c data 22 diob digital i/o port b data 22 dioa digital i/o port a data 22 extrig external trigger enable 23 dacsel dac channel register 24 dachi analog output most signi ficant data byte (msb). 25 daclo analog output least significant data byte (lsb). 25 read register description page enctrl enhanced control 18 endathi enhanced data msb 19 endatlo enhanced data lsb 19 dioctrl digital i/o control register 20 dioc digital i/o port c data 21 diob digital i/o port b data 21 dioa digital i/o port a data 21 extrig external trigger enable 23 dacall1 update all dacs simultaneously 25 dacall0 update all dacs simultaneously 25
enhanced mode registers VCM-DAS-3 reference manual 18 enhanced mode registers setting the VCM-DAS-3 to enhanced mode enabl es three additional functional registers. to enable enhanced mode, install a jumper on pins v1[13-14]. e nhanced c ontrol r egister enctrl (write) 030ah 7 6 5 4 3 2 1 0 ctrl3 ctrl2 ctrl1 ctrl0 sel3 sel2 sel1 sel0 table 9: register bit assignments bit mnemonic description 7-4 ctrl enhanced dac control ? these bits select operations to be performed on specific dac channels. ctrl3 ctrl2 ctrl1 ctrl0 function 0 0 0 0 set span: 0v to +5v 0 0 0 1 set span: 0v to +10v 0 0 1 0 set span: -5v to +5v 0 0 1 1 set span: - 10v to +10v 0 1 0 0 set span: -2.5v to +2.5v 0 1 0 1 set span: -2.5v to +7.5v 0 1 1 0 (reserved. do not use.) 0 1 1 1 (reserved. do not use.) 1 0 0 0 read dac 1 0 0 1 read span 1 0 1 0 load dac (ldac) 1 0 1 1 dac sleep 1 1 0 0 (reserved. do not use.) 1 1 0 1 (reserved. do not use.) 1 1 1 0 set gain 1 1 1 1 read gain 3-0 sel channel selection ? these bits select the da c channel for the operation. sel3 sel2 sel1 sel0 channel 0 0 0 0 0 0 0 0 1 1 0 0 1 0 2 0 0 1 1 3 0 1 0 0 4 0 1 0 1 5 0 1 1 0 6 0 1 1 1 7 1 0 0 0 8 1 0 0 1 9 1 0 1 0 10 1 0 1 1 11 1 1 0 0 12 1 1 0 1 13 1 1 1 0 14 1 1 1 1 15
enhanced mode registers VCM-DAS-3 reference manual 19 enctrl (read) 030ah 7 6 5 4 3 2 1 0 ? ? ? ? ? ? ? ready table 10: register bit assignments bit mnemonic description 7-1 ? enhanced dac control 0 ready ready ? factory use only. 0 = spi transaction in progress 1 = spi transaction complete the internal logic of the spi state machine is much faster than the isa bus speed, which limits the usef ulness of his bit for anything other than factory debugging of the design. e nhanced m ode d ata r egisters endathi msb (read) 0309h 7 6 5 4 3 2 1 0 d15 d14 d13 d12 d11 d10 d9 d8 endatlo lsb (read/write) 0308h 7 6 5 4 3 2 1 0 d7 d6 d5 d4 d3 d2 d1 d0 the data format of these registers depends on the operation executed in the enctrl register. see the sections listed below for informati on on data formats for specific operations. operation ctrl code (enctrl) page read dac 08h 34 read span 09h 34 set gain 0eh 33 read gain 0fh 33
digital i/o control register VCM-DAS-3 reference manual 20 digital i/o control register dioctrl (read/write) 0307h 7 6 5 4 3 2 1 0 ? ? ? dira dirchi ? dirb dirclo table 11: dioctrl bit assignments bit mnemonic description 7-5 ? unused. these bi ts have no function. 4 dira dio port a direction ? these bits control the dire ction of dio port a (a7-a0). 0 = output 1 = input 3 dirchi dio port c msb direction ? these bits control the di rection of the upper half of dio port c (c7-c4). 0 = output 1 = input 2 ? unused. this bit has no function. 1 dirb dio port b direction ? these bits control the dire ction of dio port b (b7-b0). 0 = output 1 = input 0 dirclo dio port c lsb direction ? these bits control the di rection of the lower half of dio port c (c3-c0). 0 = output 1 = input
digital i/o data registers VCM-DAS-3 reference manual 21 digital i/o data registers d igital i nput r egisters dioa (read) 0304h d7 d6 d5 d4 d3 d2 d1 d0 dio a7 dio a6 dio a5 dio a4 dio a3 dio a2 dio a1 dio a0 diob (read) 0305h d7 d6 d5 d4 d3 d2 d1 d0 dio b7 dio b6 dio b5 dio b4 dio b3 dio b2 dio b1 dio b0 dioc (read) 0306h d7 d6 d5 d4 d3 d2 d1 d0 dio c7 dio c6 dio c5 dio c4 dio c3 dio c2 dio c1 dio c0 table 12: digital input data bit assignments bit mnemonic description 7-0 dio a7-a0 dio b7-b0 dio c7-c0 digital input data ? data read from these regist ers returns the current input state of the digital port signals on connecto rs j1 and j2. data is not inverted. when a signal line is high, the bit reads as 1; when a signal line is low, the bit reads as 0. to operate a port in input mode, you must first set the direction of the port to input by setting the appropriate bit in t he dioctrl register. if a port is operated in output mode, the regist ers can be used to read back the logic state of the output lines. normally, the data read would be the same as the data written to the output registers; however, if an output line is stuck high or shorted to ground, the fault will be reflected in the feedback data.
digital i/o data registers VCM-DAS-3 reference manual 22 d igital o utput r egisters dioc (write) 0306h d7 d6 d5 d4 d3 d2 d1 d0 dio c7 dio c6 dio c5 dio c4 dio c3 dio c2 dio c1 dio c0 diob (write) 0305h d7 d6 d5 d4 d3 d2 d1 d0 dio b7 dio b6 dio b5 dio b4 dio b3 dio b2 dio b1 dio b0 dioa (write) 0304h d7 d6 d5 d4 d3 d2 d1 d0 dio a7 dio a6 dio a5 dio a4 dio a3 dio a2 dio a1 dio a0 table 13: digital output data bit assignments bit mnemonic description d7-d0 dio a7-a0 dio b7-b0 dio c7-c0 digital output data ? data written to these regi sters is driven onto the digital port signals on connectors j1 and j2. data is not inverted. when a bit is set to 1, the signal line is driven high; when a bit is reset to 0, the signal line is driven low. to operate a port in output mode, you must first set the direction of the port to output by clearing the appropriate bit in the dioctrl register.
external trigger enable register VCM-DAS-3 reference manual 23 external trigger enable register extrig (read/write) 0303h 7 6 5 4 3 2 1 0 ? ? ? ? ? ? ? trigen table 14: extrig bit assignments bit mnemonic description 7-1 ? unused. these bi ts have no function. 0 trigen trigger enable ? when the external trigger is enabled, digital i/o line c0 will update all dacs simultaneously when it is brought low. this can be done either by an external signal, when c0 is in input mode, or in software, when c0 is in output mode. if using an external trigger, ma ke sure that the lower half of port c is in input mode. 1 = enable 0 = disable
analog output data registers VCM-DAS-3 reference manual 24 analog output data registers dac c hannel s elect r egister dacsel (write) 0302h 7 6 5 4 3 2 1 0 ? ? ? ? sel3 sel2 sel1 sel0 table 15: dacsel bit assignments bit mnemonic description 7-4 ? unused. these bi ts have no function. 3-0 sel channel selection ? these bits select the dac channel upon which digital output functions will be performed. sel3 sel2 sel1 sel 0 selected channel 0 0 0 0 0 0 0 0 1 1 0 0 1 0 2 0 0 1 1 3 0 1 0 0 4 0 1 0 1 5 0 1 1 0 6 0 1 1 1 7 1 0 0 0 8 1 0 0 1 9 1 0 1 0 10 1 0 1 1 11 1 1 0 0 12 1 1 0 1 13 1 1 1 0 14 1 1 1 1 15
analog output data registers VCM-DAS-3 reference manual 25 dac w rite r egisters dachi (write) 0301h 7 6 5 4 3 2 1 0 ? ? ? ? da11 da10 da9 da8 daclo (write) 0300h 7 6 5 4 3 2 1 0 da7 da6 da5 da4 da3 da4 da1 da0 table 16: dachi bit assignments bit mnemonic description 7-4 ? unused. these bi ts have no function. 3-0 dachi analog output data msb ? digital-to-analog data bi ts da11-da8. da11 is the most significant bit. this register is used with the daclo register to form the 12-bit analog output value. table 17: daclo bit assignments bit mnemonic description 7-0 daclo analog output data lsb ? digital-to-analog data bits da7-da0. da0 is the least significant bit. this register is used with the dachi register to form the 12-bit analog output value. dac r ead r egisters dacall1 (read) 0301h 7 6 5 4 3 2 1 0 ? ? ? ? da11 da10 da9 da8 dacall0 (read) 0300h 7 6 5 4 3 2 1 0 da7 da6 da5 da4 da3 da4 da1 da0 reading from these locations updates all dacs to the values written to them. only dacs with new data written to them will change. the remain ing channels will retain their current values.
VCM-DAS-3 reference manual 26 analog output analog output ranges and resolution VCM-DAS-3 provides six different analog output ranges (shown in table 18), including four bipolar ranges and two unipolar ranges. one of the bipolar ranges ( - 2.5 to +7.5v) is asymmetrical. power-up ranges are determined by jumper settings (see power-up span range configuration). ranges for individual channels can be set by software using the set span command, available in enhanced mode. the resolution for any output range is equal to the maximum possible range of output voltages divided by the maximum number of possible steps. for a 12-bit d/a converter, the maximum number of steps is 4096. the actual output codes ra nge from 0 to 4095, which is the full range of possible 12-bit binary numbers. (see analog output data representation.) the table below shows the analog output ranges and resolutions available on the VCM-DAS-3. negative full scale refers to the output voltage for a code of 0, and positive full scale refers to the output voltage for a code of 4095. table 18: analog output ranges and resolution full-scale voltage bipolar or unipolar range name negative full scale positive full scale resolution (1 lsb) 10v bipolar 10v - 10v +9.9951v 4.88mv 5v bipolar 5v - 5v +4.9963v 2.44mv 2.5v bipolar 2.5v - 2.5v +2.4988v 1.22mv 7.5v bipolar -2.5 to +7.5v - 2.5v +7.4963v 2.44mv 10v unipolar 0-10v 0v +9.9976v 2.44mv 5v unipolar 0-5v 0v +4.9988v 1.22mv s etting a s pan r ange power-up span ranges are determined for blocks of channels by jumper settings (see power-up span range configuration); however, in enhan ced mode, you can set the span range for any individual channel. to perform a set span operation: 1. write the appropriate set span code (see enhanced control register) to the ctrl field of the enctrl register at i/o port 0x30a, combined with the channel number in the sel bits of the same register. 2. perform an ldac operation by writing ah to the ctrl field of the enctrl register, combined with the channel number in the sel field of the same register. 5 5
analog output data representation VCM-DAS-3 reference manual 27 analog output data representation two different digital coding schemes are used for analog output operations. ? for unipolar output ranges (positive voltages only), straight binary coding is used. ? for bipolar output ranges (both positive and ne gative voltages), offset binary coding is used. s traight b inary c oding the formulas for calculating analog or straight binary digital values are given by: where: analog = applied voltage digital = a/d conversion data step = 0.00244140625 for 0-10v range 0.00122070313 for 0-5v range 0.0006103515625 for 0-2.5v range table 19: straight binary data format 0-2.5v range 0-5v range 0-10v range hex decimal comment +2.5000 +5.0000 +10.0000 ? ? out of range +2.4993 +4.9987 +9.9975 fffh 4095 maximum positive voltage +1.2500 +2.5000 +5.0000 800h 2048 positive half scale +0.6250 +1.2500 +2.5000 400h 1024 positive quarter scale +0.00061 +0.00122 +0.00244 001h 1 positive 1 lsb 0.0000 0.0000 0.0000 000h 0 ze ro (ground output) digital = analog step analog = step x digital
analog output data representation VCM-DAS-3 reference manual 28 o ffset b inary c oding the formulas for calculating analog or straight binary digital values are given by: where: analog = applied voltage digital = a/d conversion data offset 1 = 2048 for symmetrical ranges 1024 for asymmetrical range step = 0.00122070313 for 2.5v range 0.00244140625 for 5v and - 2.5 to +7.5 ranges 0.0048828125 for 10v range offset 2 = 2.5 for 2.5v and - 2.5 to +7.5 ranges 5 for 5v 10 for 10v range table 20: offset binary data format ? symmetrical ranges 2.5v output voltage 5v output voltage 10v output voltage hex decimal comment +2.5000 +5.0000 +10.0000 ? ? out of range +2.4987 +4.9975 +9.9951 fffh 4095 maximum positive voltage +1.2500 +2.5000 +5.0000 c00h 3072 positive half scale +0.6250 +1.2500 +2.5000 a00h 2560 positive quarter scale +0.00122 +0.00244 +0.00488 801h 2049 positive 1 lsb 0.0000 0.0000 0.0000 800h 2048 ze ro (ground voltage) -0.00122 -0.00244 - 0.00488 7ffh 2047 negative 1 lsb -0.6250 -1.2500 - 2.5000 600h 1536 negative quarter scale -1.2500 -2.5000 - 5.0000 400h 1024 negative half scale -2.5000 -5.0000 - 10.0000 000h 0 maximum negative voltage digital = analog = (step x digital) - offset 2 + offset 1 analog step
analog output data representation VCM-DAS-3 reference manual 29 table 21: offset binary data format ? asymmetrical range -2.5 to +7.5 output voltage hex decimal comment +7.5000 ? ? out of range +7.4975 fffh 4095 maximum positive voltage +3.7500 a00h 2560 positive half scale +1.8750 700h 1792 positive quarter scale +0.00244 401h 1025 positive 1 lsb 0.0000 400h 1024 zero (ground voltage) - 0.00244 3ffh 1023 negative 1 lsb - 0.6250 300h 768 negative quarter scale - 1.2500 200h 512 negative half scale - 2.5000 000h 0 maximum negative voltage
analog output programming VCM-DAS-3 reference manual 30 analog output programming analog output voltages can be programmed either directly or with the use of a driver. this section describes how to modify analog output voltages directly. VCM-DAS-3 analog outputs have a resolution of 12 bits. data is written to the board in 8-bit bytes, so two bytes must be used to write a single analog output value. these bytes are referred to as the least significant byte (lsb) and the most significant byte (msb). when modifying analog outputs, one or multiple channels can be updated simultaneously. for this reason, the update operation is sep arate from the data write operation. to change an analog output on one or more channels: 1. write the channel number to the dacsel register at i/o port 0x302. 2. write the lsb to the daclo register at i/o port 0x300. 3. write the msb to the dachi register at i/o port 0x301. 4. repeat steps 1-3 for each channel to be changed. 5. finally, update all channels simultaneous ly by reading the daclo register. e xternal t rigger u pdate an external trigger is enabled by setting the tr igen bit in the extrig register at i/o port 0x303. when the external trigger is enable d, digital i/o line c0 will update all dacs simultaneously when it is brought low. this can be done either by an external signal, when c0 is in input mode, or in software, when c0 is in out put mode. if using an external trigger, make sure that the lower half of port c is in input mode. when the trigger signal is low, dacs are update d as soon as new data is written to them. when the trigger signal is high, the dac voltage out puts remain fixed, unless updated in software. l oad dac o peration the load dac (ldac) operation provides a method for updating a single dac channel. to perform the ldac operation, write ah to the ctrl field of the enctrl register at i/o port 0x30a, combined with the channel number in the sel field of the same register. to change an analog output a single channel using the ldac operation: 1. write the channel number to the dacsel register at i/o port 0x302. 2. write the lsb to the daclo register at i/o port 0x300. 3. write the msb to the dachi register at i/o port 0x301. 4. perform the ldac operation for the selected channel.
analog output code example VCM-DAS-3 reference manual 31 analog output code example the following visual basic code illustrates how to operate the analog output feature of the VCM-DAS-3. function lib_das3aout (byval channel, byval range, byval voltage) ' 'description: this function performs an ' analog output operation to the ' specified channel. ' 'entry: channel: analog output channel (0 to 15) ' range: 0=5v, 1=10v, 2=+/-5v, 3=+/-10v ' 4=2.5v, 5=-2.5v/+7.5v ' voltage: analog output voltage (within range) ' 'returns: 0 if no errors ' 1 if timeout occurs ' 'examples: 'output +5.000v on channel 0 ' x = lib_das3aout (0,1,5.000) ' ' 'output -7.500v on channel 1 ' x = lib_das3aou (1, 3, -7.500) ' 'enhanced control register (base + 0xa) ' d7 d6 d5 d5 d3 d2 d1 d0 ' ec3 ec2 ec1 ec0 ---dac channel--- ' ===================================== ' 0v to +5v 0 0 0 0 ' 0v to +10v 0 0 0 1 ' -5v to +5v 0 0 1 0 ' -10v to +10v 0 0 1 1 '-2.5v to +2.5v 0 1 0 0 '-2.5v to +7.5v 0 1 0 1 dim value as integer dim hidac as integer dim lodac as integer dim done as integer dim y as integer dim x as integer dim bipolar as integer dim fullscale as single select case range case 0 '+5v bipolar = 0 fullscale = 5 case 1 '+10v bipolar = 0 fullscale = 10 case 2 '+/-5v bipolar = 1 fullscale = 5
analog output code example VCM-DAS-3 reference manual 32 case 3 '+/-10v bipolar = 1 fullscale = 10 case 4 '+/-2.5v bipolar = 1 fullscale = 2.5 case 5 '+7.5/-2.5v bipolar = 2 fullscale = 7.5 end select if bipolar = 1 then 'offset binary coding (symetrical ratio) value = int((voltage / fullscale) * 2048 + 2048) elseif bipolar = 2 then 'offset binary coding (asymetrical ratio) value = int((voltage / fullscale) * 3072 + 1024) else 'unipolar 'straight binary coding value = int((voltage / fullscale) * 4096) end if 'limit excursion if value > 4095 then value = 4095 end if 'separate low byte from high nibble lodac = value and &hff hidac = (value and &hf00) / 256 'set selected dac channel to the desired range '(enhanced mode register) out base + &ha, ((range * 16) + channel) 'set selected dac channel to desired voltage out base, lodac out base + 2, channel out base + 1, hidac 'a single read updates all outputs x = inp(base) 'wait for done or timeout before returning done = 0 y = 0 while not done y = y + 1 if y < 2000 then 'timeout done = inp(base + &ha) and &h01 '(enhanced mode register) else lib_das3aout = 1 exit function end if wend lib_das3aout = 0 end function
calibration VCM-DAS-3 reference manual 33 calibration calibration, if desired, is accomplished by mathem atical transformation in software. gain for the board (not individual channels) can be adjusted using the enctrl register. offset adjustments are not currently implemented on the board. an spi transaction to the gain pot will take less than 10 us. however, the gain pot takes up to 20 ms to update its eeprom when written to. during calibration, you need to wait 2 ms after the write command before measuring the voltage of the dac output. s etting the g ain the range of gain adjustment is 24 mv. the gain is encoded using the eight bits of the endatlo register, so each step equals 0.094 mv . to perform the set gain command, write e0h to the enctrl register at i/o port 0x30a, and then write the gain value to the endatlo register at i/o port 0x308. the following procedure is recommended for setting the gain: 1. select channel 0 by writing 0h to the dacsel register at i/o port 0x302. 2. output the code for 0v by writing 0h to both the dachi and daclo registers. 3. using high-precision volt meter (vom), read the voltage on channel 0. the voltage read is the offset. 4. output the code for known voltage minus the offset to channel 0. 5. using the vom, read voltage on channel 0. the difference between the vom reading and the known voltage applied in step 4 is the gain error. 6. adjust gain pot up or down to reduce the gain error to the lowest possible amount. note that there is no adjustment for offset error. you must accommodate for offset with software. the gain value you set is non-volatile. r eading the g ain to perform the read gain operation, write f0h to the enctrl register at i/o port 0x30a, and then read the value of the endatlo register at i/o port 0x308.
enhanced mode operations VCM-DAS-3 reference manual 34 enhanced mode operations the VCM-DAS-3 must be in enhanced mode to perform enhanced mode operations. r eading dac d ata reading a dac using the read dac operation does not cause the dac to be updated, as reading the dacall0 register does. performing a read dac operation loads the dac voltage code in the endathi and endatlo registers. to read the voltage of a dac: 1. perform a read dac operation by writing 8h to the ctrl field of the enctrl register at i/o port 0x30a, combined with the channel number in the sel field of the same register. 2. read the endathi register and then the endatlo register. the 12 bits of the output voltage code are offset toward the msb, as shown below. endathi msb (read) 0309h 7 6 5 4 3 2 1 0 d11 d10 d9 d8 d7 d6 d5 d4 endatlo lsb (read) 0308h 7 6 5 4 3 2 1 0 d3 d2 d1 d0 0 0 0 0 r eading the s pan of a c hannel to read the span of a channel: 1. perform a read span operation by writing 9h to the ctrl field of the enctrl register at i/o port 0x30a, combined with the channel number in the sel field of the same register. 2. read the span code from bits 3-0 of the endatlo register at i/o port 0x308, as shown below. endatlo lsb (read) 0308h 7 6 5 4 3 2 1 0 ? ? ? ? d3 d2 d1 d0
enhanced mode operations VCM-DAS-3 reference manual 35 s etting a c hannel to s leep m ode to set a dac to sleep mode, perform a sleep dac operation by writing bh to the ctrl field of the enctrl register at i/o port 0x30a, combined with the channel number in the sel field of the same register. the channel remains in sleep m ode until a voltage output code is written to it. r eading the s leep s tatus of a c hannel to read the sleep status of a channel: 1. perform a read span operation by writing 9h to the ctrl field of the enctrl register at i/o port 0x30a, combined with the channel number in the sel field of the same register. 2. read the sleepstat bit (bit 4) of the endatlo register at i/o port 0x308, as shown below. a value of 0 = awake. a value of 1 = sleep mode. endatlo lsb (read) 0308h 7 6 5 4 3 2 1 0 ? ? ? sleepstat ? ? ? ?
VCM-DAS-3 reference manual 36 digital i/o signal direction the 24 digital i/o port signals on the VCM-DAS-3 can be configured as inputs or outputs, in groups of eight or, in the case of port dioc, in groups of four. signal direction is set by manipulating the bits in the dioctrl register. th e logic level on any digital i/o channel can be set by writing a 1 or 0 to the appropriate bit. the digital i/o interface of the VCM-DAS-3 are 82c55 mode 0 compatibly only. signal polarity all digital i/o circuits on the VCM-DAS-3 are non- inverted, true logic. a high logic level is represented by a 1 in the digital i/o data register s, and a low logic level is represented by a 0. since opto 22 modules invert the logic sense of signals passed through them, the register-to- module interface is negative logic. the resulting data interface levels between the VCM-DAS-3 and i/o rack modules are shown below. data written i/o pin output modules input modules i/o pin data read 0 (low) power on voltage present (low) 0 1 (high) power off voltage absent (high) 1 digital input the logic state of the digital input channels can be read at any time by reading the dioa, diob, or dioc registers. simply choose the correct register and read it as an 8-bit quantity. digital output the logic state of any digital output channel can be manipulated at any time by writing to the dioa, diob, or dioc registers. simply choose the correct register and write the digital value as an 8-bit quantity. 6 6
VCM-DAS-3 reference manual 37 references dac controller ltc2704 datasheet linear technology ltc2704 pc/104 specification pc/104 consortium pc/104 resource guide pc/104- plus specification versalogic corporation pc/104 resource guide general pc documentation microsoft press the programmer?s pc sourcebook general pc documentation powell?s books the undocumented pc a a


▲Up To Search▲   

 
Price & Availability of VCM-DAS-3

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X